# -*- coding : utf_8 -*-
'''
=======================================
Time : 2025/3/23 0:30
Author : 田霄汉
Email : 522989570@qq.com
File : setting.py
Project : pytest_demo
=======================================
'''

import os
import sys

dir_path = os.path.dirname(os.path.dirname(__file__))
sys.path.append(dir_path)

# 设置文件相关路径
file_path = {
    'extract': os.path.join(dir_path, 'ectract.yml'),
    'ini': os.path.join(dir_path, 'globalconfig', 'globalconfig.ini'),
    'log': os.path.join(dir_path, 'logs'),
    'testcase': os.path.join(dir_path, 'testdata_yaml', 'testcase'),
    'csv': os.path.join(dir_path, 'csv_data'),
    'globalconfig': os.path.join(dir_path, 'globalconfig')
}

# 设置钉钉相关配置
# 设置是否发送地规定群消息，默认False则不会发送
is_dd_send = True
# 设置是否@all
is_at_all = True
# 钉钉机器人签名和地址
secret = 'SEC1b644b5d4c9675e62ae8bf2ae31a8cda994ea3f3745b1dd16a3e4babe10150d1'
webhook = 'https://oapi.dingtalk.com/robot/send?access_token=61c292c45555dc2db' \
          '209b9ec599451e683d2fae776f46b43545813958230dee1'